Skip to content

mw/com: Add PRIVATE support for semi dynamic data types#632

Merged
bemerybmw merged 1 commit into
mainfrom
brem_semi_dynamic_methods
Jul 6, 2026
Merged

mw/com: Add PRIVATE support for semi dynamic data types#632
bemerybmw merged 1 commit into
mainfrom
brem_semi_dynamic_methods

Conversation

@bemerybmw

@bemerybmw bemerybmw commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds support for dynamic types which allocate once at runtime. An
additional size in bytes can be passed to a private proxy Create
function which increases the amount of shared memory allocated for
methods. An application can then create a data type which guarantees to
not allocate more than the provided value.

An example test application is created
mw/com/test/methods/semi_dynamic_methods.

This should only be used in the context of SWP-269486. Any other usage
of this is a violation of our AOU: NoApisFromImplementationNamespace

@bemerybmw bemerybmw force-pushed the brem_semi_dynamic_methods branch 2 times, most recently from 9c07968 to 9ee4526 Compare July 2, 2026 14:12
@bemerybmw bemerybmw marked this pull request as ready for review July 3, 2026 06:54
Comment thread score/mw/com/impl/methods/proxy_method.h
}

private:
std::unique_ptr<typename Proxy::HandleType> handle_{nullptr};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be rather an std::optional ... and not a heap allocated unique_ptr ...

Comment thread score/mw/com/test/methods/semi_dynamic_methods/consumer.cpp
Comment thread score/mw/com/test/methods/semi_dynamic_methods/consumer.cpp
Adds support for dynamic types which allocate once at runtime. An
additional size in bytes can be passed to a private proxy Create
function which increases the amount of shared memory allocated for
methods. An application can then create a data type which guarantees to
not allocate more than the provided value.

An example test application is created
mw/com/test/methods/semi_dynamic_methods.

This should only be used in the context of SWP-269486. Any other usage
of this is a violation of our AOU: NoApisFromImplementationNamespace
@bemerybmw bemerybmw force-pushed the brem_semi_dynamic_methods branch from 9ee4526 to fea66e6 Compare July 6, 2026 08:24
@bemerybmw bemerybmw added this pull request to the merge queue Jul 6, 2026
Merged via the queue into main with commit c4eb145 Jul 6, 2026
9 checks passed
@bemerybmw bemerybmw deleted the brem_semi_dynamic_methods branch July 6, 2026 12:40
@github-project-automation github-project-automation Bot moved this from Backlog to Done in COM - Communication FT Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants